import request from '@/utils/request'

// 查询已发起会议列表
export function listMtBusiness(query) {
  return request({
    url: '/business/mtBusiness/list',
    method: 'get',
    params: query
  })
}

// 查询已发起会议详细
export function getMtBusiness(id) {
  return request({
    url: '/business/mtBusiness/' + id,
    method: 'get'
  })
}

// 保存已发起会议
export function saveMtBusiness(data) {
  return request({
    url: '/business/mtBusiness/save',
    method: 'post',
    data: data
  })
}

// 发起会议通知后修改数据
export function afterProcessUpdate(data) {
  return request({
    url: '/business/mtBusiness/afterProcessUpdate',
    method: 'post',
    data: data
  })
}

// 删除已发起会议
export function delMtBusiness(id) {
  return request({
    url: '/business/mtBusiness/' + id,
    method: 'delete'
  })
}

// 导出已发起会议
export function exportMtBusiness(query) {
  return request({
    url: '/business/mtBusiness/export',
    method: 'get',
    params: query
  })
}

// 查询项目上会关联主表ID为null的
export function findByBusinessIdIsNull(params) {
  return request({
    url: '/business/mtBusiness/findByBusinessIdIsNull',
    method: 'get',
    params: params
  })
}

// 查询推送记录推送过来的项目上会信息
export function findByPushIdList(list) {
  return request({
    url: '/business/mtBusiness/findByPushIdList',
    method: 'post',
    data: list
  })
}

// 查询上会情况列表
export function listMtSituation(query) {
  return request({
    url: '/business/mtBusiness/listMtSituation',
    method: 'get',
    params: query
  })
}
